package com.example.department.Impl;

import com.example.department.Entity.Activity;
import com.example.department.Entity.Apply;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ApplyImpl { //报名活动志愿者
    List<Apply> getApplyList(@Param("apply") Apply apply); //查询全部活动信息
    int addApply(@Param("apply") Apply apply); //增加活动信息
    int delApply(@Param("aid") int aid); //删除活动信息
    int updateApply(@Param("apply") Apply apply); //修改活动信息
    Apply getApplyById(@Param("aid") int aid); //根据id查询
    List<Apply> getApplyPageList(@Param("activityname") String activityname,@Param("activityaddress") String activityaddress,@Param("Start") int Start,@Param("Page") int Page);//获取列表
}
